package edu.unr.cater.npap.server.locator;

import com.google.web.bindery.requestfactory.shared.Locator;
import edu.unr.cater.npap.client.domain.AnalysisTeam;
import org.springframework.roo.addon.gwt.RooGwtLocator;
import org.springframework.stereotype.Component;

@RooGwtLocator("edu.unr.cater.npap.client.domain.AnalysisTeam")
@Component
public class AnalysisTeamLocator extends Locator<AnalysisTeam, Integer> {

    public AnalysisTeam create(Class<? extends edu.unr.cater.npap.client.domain.AnalysisTeam> clazz) {
        return new AnalysisTeam();
    }

    public AnalysisTeam find(Class<? extends edu.unr.cater.npap.client.domain.AnalysisTeam> clazz, Integer id) {
        return AnalysisTeam.findAnalysisTeam(id);
    }

    public Class<edu.unr.cater.npap.client.domain.AnalysisTeam> getDomainType() {
        return AnalysisTeam.class;
    }

    public Integer getId(AnalysisTeam analysisTeam) {
        return analysisTeam.getTeamId();
    }

    public Class<java.lang.Integer> getIdType() {
        return Integer.class;
    }

    public Object getVersion(AnalysisTeam analysisTeam) {
        return analysisTeam.getVersion();
    }
}
